package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.KtServiceViphallAuxtypeMapper;
import com.ktgj.service.domain.KtserviceViphallAuxtype;
import com.ktgj.service.service.IKtserviceViphallAuxtypeService;

/**
 * 贵宾厅设施功能Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class KtserviceViphallAuxtypeServiceImpl implements IKtserviceViphallAuxtypeService 
{
    @Autowired
    private KtServiceViphallAuxtypeMapper ktServiceViphallAuxtypeMapper;

    /**
     * 查询贵宾厅设施功能* 
     * @param auxtypeId 贵宾厅设施功能ID
     * @return 贵宾厅设施功能*/
    @Override
    public KtserviceViphallAuxtype selectKtserviceViphallAuxtypeById(Long auxtypeId)
    {
        return ktServiceViphallAuxtypeMapper.selectKtserviceViphallAuxtypeById(auxtypeId);
    }

    /**
     * 查询贵宾厅设施功能列表
     * 
     * @param KtserviceViphallAuxtype 贵宾厅设施功能* @return 贵宾厅设施功能*/
    @Override
    public List<KtserviceViphallAuxtype> selectKtserviceViphallAuxtypeList(KtserviceViphallAuxtype KtserviceViphallAuxtype)
    {
        return ktServiceViphallAuxtypeMapper.selectKtserviceViphallAuxtypeList(KtserviceViphallAuxtype);
    }

    /**
     * 新增贵宾厅设施功能* 
     * @param KtserviceViphallAuxtype 贵宾厅设施功能* @return 结果
     */
    @Override
    public int insertKtserviceViphallAuxtype(KtserviceViphallAuxtype KtserviceViphallAuxtype)
    {
        KtserviceViphallAuxtype.setCreateTime(DateUtils.getNowDate());
        KtserviceViphallAuxtype.setOpemployeeId(10l);
        return ktServiceViphallAuxtypeMapper.insertKtserviceViphallAuxtype(KtserviceViphallAuxtype);
    }

    /**
     * 修改贵宾厅设施功能* 
     * @param KtserviceViphallAuxtype 贵宾厅设施功能* @return 结果
     */
    @Override
    public int updateKtserviceViphallAuxtype(KtserviceViphallAuxtype KtserviceViphallAuxtype)
    {
        KtserviceViphallAuxtype.setUpdateTime(DateUtils.getNowDate());
        return ktServiceViphallAuxtypeMapper.updateKtserviceViphallAuxtype(KtserviceViphallAuxtype);
    }

    /**
     * 批量删除贵宾厅设施功能* 
     * @param auxtypeIds 需要删除的贵宾厅设施功能ID
     * @return 结果
     */
    @Override
    public int deleteKtserviceViphallAuxtypeByIds(Long[] auxtypeIds)
    {
        return ktServiceViphallAuxtypeMapper.deleteKtserviceViphallAuxtypeByIds(auxtypeIds);
    }

    /**
     * 删除贵宾厅设施功能信息
     * 
     * @param auxtypeId 贵宾厅设施功能ID
     * @return 结果
     */
    @Override
    public int deleteKtserviceViphallAuxtypeById(Long auxtypeId)
    {
        return ktServiceViphallAuxtypeMapper.deleteKtserviceViphallAuxtypeById(auxtypeId);
    }

    @Override
    public int updateKtserviceViphallAuxtypeBySort(Long auxtypeId) {
        return ktServiceViphallAuxtypeMapper.updateKtserviceViphallAuxtypeBySort(auxtypeId);
    }

    @Override
    public int updateKtserviceViphallAuxtypeBySorts(Long auxtypeId) {
        return ktServiceViphallAuxtypeMapper.updateKtserviceViphallAuxtypeBySorts(auxtypeId);
    }

    @Override
    public List<KtserviceViphallAuxtype> selectKtserviceViphallAuxtypeByServiceType(KtserviceViphallAuxtype KtserviceViphallAuxtype) {
        return ktServiceViphallAuxtypeMapper.selectKtserviceViphallAuxtypeByServiceType(KtserviceViphallAuxtype);
    }

    /**
     * 弹窗列表
     * */
    @Override
    public List<KtserviceViphallAuxtype> selectViphallAuxtypeByName(String name){
        List<KtserviceViphallAuxtype> ktserviceViphallAuxtypes = ktServiceViphallAuxtypeMapper.selectViphallAuxtypeByName(name);
        return ktserviceViphallAuxtypes;
    }
}
